package com.haizhi.bean;

// Generated 2016-8-15 17:44:37 by Hibernate Tools 3.2.2.GA

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * Entity: 
 */
@Entity
@Table(name = "tb_vr", catalog = "db_lemon3d")
public class TbVr implements java.io.Serializable {

	/** 
	 * vrģʽID.
	 */

	private Integer vrId;

	/** 
	 * ��Ʒid.
	 */

	private TbProduct tbProduct;

	/** 
	 * vr�ļ����ͣ�1��ʾjson,0��ʾ�ļ�.
	 */

	private int vrType;

	/** 
	 * ���ʱ��.
	 */

	private Date vrAddTime;

	/** 
	 * �޸�ʱ��.
	 */

	private String vrContent;

	public TbVr() {
	}

	public TbVr(TbProduct tbProduct, int vrType, Date vrAddTime,
			String vrContent) {
		setTbProduct(tbProduct);
		setVrType(vrType);
		setVrAddTime(vrAddTime);
		setVrContent(vrContent);
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "vr_id", unique = true, nullable = false)
	public Integer getVrId() {
		return this.vrId;
	}

	public void setVrId(Integer vrId) {
		this.vrId = vrId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "product_id", nullable = false)
	public TbProduct getTbProduct() {
		return this.tbProduct;
	}

	public void setTbProduct(TbProduct tbProduct) {
		this.tbProduct = tbProduct;
	}

	@Column(name = "vr_type", nullable = false)
	public int getVrType() {
		return this.vrType;
	}

	public void setVrType(int vrType) {
		this.vrType = vrType;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "vr_add_time", nullable = false, length = 19)
	public Date getVrAddTime() {
		return this.vrAddTime;
	}

	public void setVrAddTime(Date vrAddTime) {
		this.vrAddTime = vrAddTime;
	}

	@Column(name = "vr_content", nullable = false)
	public String getVrContent() {
		return this.vrContent;
	}

	public void setVrContent(String vrContent) {
		this.vrContent = vrContent;
	}

}
